﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ZhimeiSoft.Framework.Common.Entity;
using ZhimeiSoft.Framework.Connector.Interface;
using ZhimeiSoft.Framework.Server.Connector.Factory;
using ZhimeiSoft.Framework.Server.Connector.BLL.Interface;


namespace ZhimeiSoft.Framework.Server.Connector.Proxy.Impl
{
    public class ConnectorServiceImpl : IConnector
    {
        ILoginBLL loginBll;

        public ConnectorServiceImpl()
        {
        }

        public ILoginBLL GetLoginBLL()
        {
            if (loginBll == null)
                loginBll = BLLFactory.CreateLoginBLL();
            return loginBll;
        }

        #region IConnector Members

        public bool Login(ref LoginEntity loginEntity, out int error)
        {
            return this.GetLoginBLL().Login(ref loginEntity, out error);
        }

        public void Logout()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
